package com.passcheck.controller;

import com.passcheck.anno.ResponseResultBody;
import com.passcheck.wx.WxLoginDTO;
import com.service.login.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author ZhangHaiWen
 * @title: LoginController
 * @projectName minipasscheck
 * @description: 微信登录
 * @date 2020/12/1615:23
 */
@ResponseResultBody
@RestController
@RequestMapping(value = "/user")
public class LoginController {

    @Autowired
    private LoginService loginService;
       /**
   　　* @description:
   　　* @param WxLoginDTO 微信请求登录数据
   　　* @return {@link Object}
   　　* @throws
   　　* @author ZhangHaiWen
   　　* @version 2.0
   　　* @date 2020/12/17 9:01
   　　*/
    @RequestMapping(value = "/login",method = RequestMethod.POST)
    public Object login(@RequestBody WxLoginDTO wxLoginParam){
        return loginService.login(wxLoginParam);
    }

}
